package com.zhiwen.design.decorate;

/**
 * @Auther: wuzhiwen
 * @Date: 2018/12/5 09:59
 * @Description:
 */
public class ConcreteDecorator extends Decorator {
    public ConcreteDecorator(Component component) {
        super(component);
    }

    public void operation() {
        super.operation();
        addBehavior();
    }

    private void addBehavior() {
        System.out.println("增强方法");
    }
}
